import App from './App'

// #ifndef VUE3
import Vue from 'vue'
 

import uView from 'uview-ui';
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'

import store from './store/store'
Vue.prototype.$storeVal = store;

import db from './utils/db.js'
Vue.prototype.$db = db;

import moment from 'moment'
Vue.prototype.$moment = moment;

import http from './utils/http.js'
Vue.prototype.$http = http;

import func from './utils/func.js'
Vue.prototype.$func = func;



const app = new Vue({
	...App,store
})
// #ifdef H5
// RouterMount(app, router, '#app')
app.$mount(); 
// #endif

// #ifndef H5
app.$mount(); // 为了兼容小程序及app端必须这样写才有效果
// #endif
 
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import uView from 'uview-ui';
export function createApp() {
	const app = createSSRApp(App)
	return {
		app,
		uView
	}
}

// #endif
